package com.h6.crm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.h6.crm.entity.QuoteRecord;
import com.h6.crm.entity.SysUser;
import com.h6.crm.util.pojo.dto.QuoteDetailDto;
import com.h6.crm.util.pojo.vo.QueryQuoteReocrdVO;
import com.h6.crm.util.pojo.vo.QuoteApprovalVO;
import com.h6.crm.util.pojo.vo.UpdateQuoteStatusVO;

public interface QuoteService extends IService<QuoteRecord> {

    /**
     * 获取报价单信息
     *
     */
    QuoteDetailDto getQuoteRecordDetailById(Long id);

    /**
     * 获取报价单信息2
     *
     */
    QuoteDetailDto getQuoteRecordDetailById2(Long id);

    /**
     * 修改报价状态
     *
     */
    Boolean updateQuoteStatusById(Long id, UpdateQuoteStatusVO quoteVO, SysUser user);

    /**
     * 审批报价
     *
     */
    Boolean quoteApproval(Long id, QuoteApprovalVO quoteApprovalVo);

    /**
     * 提交审批
     *
     */
    Boolean quoteSubmit(Long id);

    /**
     * 分页获取全部报价记录
     *
     */
    Page<QuoteRecord> queryQuoteReocrdList(QueryQuoteReocrdVO recordVo);
}